package com.caocaog.market.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "GoodsAttributeVo -商品属性vo")
public class GoodsAttributeVo {

    @ApiModelProperty(value = "编号")
    private String id;

    @ApiModelProperty(value = "编号")
    private String key;

    // TODO 删除
    @ApiModelProperty(value = "商品规格图片")
    private String pictureSku;

    @ApiModelProperty(value = "商品属性名称或者规格名称")
    private String nameSku;

    @ApiModelProperty(value = "商品属性名称或者规格名称")
    private String[] valueSku;

    @NotNull(message = "规格价格不能为空")
    @Min(value = 0, message = "规格价格不能小于0")
    @ApiModelProperty(value = "价格")
    private String priceSku;

    /**重量*/
    @ApiModelProperty(value = "重量")
    private String weightSku;
    @ApiModelProperty(value = "重量(克)")
    private Integer weightGSku;

    @ApiModelProperty(value = "库存")
    private Integer stockSku;

    /**打包费*/
    @ApiModelProperty(value = "打包费")
    private String packFeeSku;

    @ApiModelProperty(value = "(后台用,其他端比如小程序端 可忽略)是否可编辑")
    private Boolean editable;
}
